package com.bailugansan.efficiencyboard.service;

import com.bailugansan.efficiencyboard.entity.task.AddTaskEntity;
import com.bailugansan.efficiencyboard.entity.task.DeleteTaskEntity;
import com.bailugansan.efficiencyboard.entity.task.SwapTaskEntity;
import com.bailugansan.efficiencyboard.entity.task.UpdateTaskEntity;
import com.bailugansan.efficiencyboard.vo.BoardVo;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author BailuGansan
 */

@Service
public interface TaskService {

    /**
     *
     * @param entity
     * @return
     */
    boolean addTask(AddTaskEntity entity);

    /**
     *
     * @param entity
     * @return
     */
    boolean updateTask(UpdateTaskEntity entity);

    /**
     *
     * @param entity
     * @return
     */
    boolean deleteTask(DeleteTaskEntity entity);

    /**
     *
     * @param entity
     * @return
     */
    boolean swapTask(SwapTaskEntity entity);

    List<BoardVo> getTaskVos(int poolId);
}
